package com.no1.musicmgr.mapper;

import com.no1.musicmgr.entity.reCollection;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

/**
 * @author 17739
 */
@Mapper
public interface CollectionMapper {

    /**
     * 插入音乐
     * @param reCollection
     * @return
     */
    boolean insert(reCollection reCollection);

    /**
     * 删除音乐
     * @param collectionId
     * @return
     */
    boolean deleteById(Integer collectionId);

    /**
     * 更新音乐
     * @param reCollection
     * @return
     */
    boolean update(reCollection reCollection);

    /**
     * 通过id查询音乐
     * @param collectionId
     * @return
     */
    reCollection selectById(Integer collectionId);

    /**
     * 按条件查询音乐
     * @param reCollection
     * @return
     */
    ArrayList<reCollection> list(reCollection reCollection);

}
